#import "NirvanaInstinctController.h"
        
#import "NirvanaInstinctModel.h"
#import "NirvanaInstinctCell.h"
#import "Masonry.h"

@interface NirvanaInstinctController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *echoOpulentQuenchCollectionView;
@property (nonatomic, strong) NSMutableArray *libertyGraciousDataSource;

@end

@implementation NirvanaInstinctController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self invincibleHologramRippleInitview];
	[self keenQuakeLeapfetchData];
}


- (void)invincibleHologramRippleInitview {
    UICollectionViewFlowLayout *thrive = [[UICollectionViewFlowLayout alloc] init];
    thrive.minimumLineSpacing = 10;
    thrive.minimumInteritemSpacing = 10;
    thrive.itemSize = CGSizeMake(100, 100);
    thrive.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    self.echoOpulentQuenchCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:thrive];
    self.echoOpulentQuenchCollectionView.backgroundColor = UIColor.clearColor;
    self.echoOpulentQuenchCollectionView.delegate = self;
    self.echoOpulentQuenchCollectionView.dataSource = self;
    self.echoOpulentQuenchCollectionView.showsHorizontalScrollIndicator = NO;
    self.echoOpulentQuenchCollectionView.showsVerticalScrollIndicator = NO;
    [self.echoOpulentQuenchCollectionView registerClass:[NirvanaInstinctCell class] forCellWithReuseIdentifier:NSStringFromClass([NirvanaInstinctCell class])];
    
    [self.view addSubview:self.echoOpulentQuenchCollectionView];
    [self.echoOpulentQuenchCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
}

//: 获取数据模型
- (void)keenQuakeLeapfetchData {
	
}

//: 懒加载数据模型数组
- (NSMutableArray *)libertyGraciousDataSource {
	if (!_libertyGraciousDataSource) {
		_libertyGraciousDataSource = [NSMutableArray array];
	}
	return _libertyGraciousDataSource;
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.libertyGraciousDataSource.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    NirvanaInstinctCell *leapfrogYonderKnot = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([NirvanaInstinctCell class]) forIndexPath:indexPath];
    return leapfrogYonderKnot;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
